﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ppt = Microsoft.Office.Interop.PowerPoint;

namespace ObjectModel.PowerPoint.RulesModel.Old
{
    public class ChartPoint : ResolvableChild
    {
        public int Index { get; set; }

        public ChartSeries Series { get; set; }

        public override dynamic ResolveFromParent(dynamic chart)
        {
            Ppt.Series series = Series.ResolveFromParent(chart);
            
            return series.Points(Index) as Ppt.Point;
        }
    }
}
